package week08;
import java.util.*;
public class Main2 {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int[]arr=new int[n];
		for(int i=0;i<n;i++) {
			String s=sc.next();
			try {
				arr[i]=Integer.parseInt(s);
			}catch(Exception e) {
				System.out.println(e);
				i--;
				
			}
		}
System.out.println(Arrays.toString(arr));
sc.close();
	}
	

}
